<?php
	try {
		$client = new SOAPClient('http://localhost:61279/WSLabManager-1.0.0/WSLabManagerService?wsdl');
		$password = hash('md5', $_POST['contrasena']);
		$params = array('code' => $_POST['codigo'], 
						'lastName' => "",
						'name' => "",
						'password' => $password,
						'profileId' => "",
						'state' => 2,
						'userName' => ""
					);
		$res = $client->updateUser($params);
		$response = (array) $res->return;

		$code =  $response['code'];
		$message =  $response['message'];
		echo $code;
	} catch (Exception $e) {
		echo 50;
	}
	
?>

